<!--
  功能：功能描述
  时间：2023年04月17日 16:59:14
-->
<template>
  <div class="item">
    <div class="label"><span v-if="required">*</span>{{ name }}:</div>
    <slot></slot>
  </div>
</template>

<script lang="ts" setup>
interface IProps {
  name: string;
  required?:boolean
}
defineProps<IProps>();
</script>

<style scoped lang="scss">
.item {
  margin-bottom: 20px;
  flex:1;
}

.label {
  line-height: 30px;
  span{color: #c00;margin-right: 3px;display: inline-block;}
}
</style>
